    <div class="box prodBg bestsellerProducts">
      <div class="box-heading"><?php echo $heading_title; ?> <div class="head-arrow"><i class="fa fa-caret-down"></i></div></div>
      <div class="box-content">
        <div class="box-product <?php echo ($this->config->get('default_display_bestseller')=="slider")?"slider4":""; ?>">
        
        <?php
			//iconProducts
			$iconProducts = explode(',', $this->config->get('icon_product')); 
			$iconProductsSettings=$this->config->get('iconproduct');
		  $styleIconProduct="";
		  if(isset($iconProductsSettings[0]['image_width']) && $iconProductsSettings[0]['image_width'])
			$styleIconProduct .="width:".$iconProductsSettings[0]['image_width']."px;";
		  if(isset($iconProductsSettings[0]['image_height']) && $iconProductsSettings[0]['image_height'])
			$styleIconProduct .="height:".$iconProductsSettings[0]['image_height']."px;";
		  if(isset($iconProductsSettings[0]['image_top']) && $iconProductsSettings[0]['image_top'])
			$styleIconProduct .="top:".$iconProductsSettings[0]['image_top']."px;";
		  if(isset($iconProductsSettings[0]['image_right']) && $iconProductsSettings[0]['image_right'])
			$styleIconProduct .="right:".$iconProductsSettings[0]['image_right']."px;";
		  if(isset($iconProductsSettings[0]['color']) && $iconProductsSettings[0]['color'])
			$styleIconProduct .="background:".$iconProductsSettings[0]['color'].";";
		?>
        
          <?php foreach ($products as $product) { ?>
          <div class="slide">
          
          
          	 <?php //iconProducts
 	          if(in_array($product['product_id'],$iconProducts)){
 	          	?>
 	          	<span class="newPadge" style="<?php echo $styleIconProduct; ?>"><?php echo $iconProductsSettings[0]['text']; ?></span>
 	          	<?php 
 	          }
           	?>
          
          	<!-- IMAGE -->
            <!--for swap image-->
            <?php if ($product['thumb_swap']) { ?>
              <div class="image">
                  <a href="<?php echo $product['href']; ?>">
                     <img oversrc="<?php echo $product['thumb_swap']; ?>" src="<?php echo $product['thumb']; ?>" 
                     title="<?php echo $product['name']; ?>" alt="<?php echo $product['name']; ?>" style="border:none"/>
                  </a>
              </div>
              <?php } else {?>
              <div class="image">
                  <a href="<?php echo $product['href']; ?>">
                      <img src="<?php echo $product['thumb']; ?>" title="<?php echo $product['name']; ?>" 
                      alt="<?php echo $product['name']; ?>" style="border:none"/>
                  </a>
              </div>
              <?php } ?>
            <!--/ swap img-->
            
            <!-- NAME -->
            <div class="name"><a href="<?php echo $product['href']; ?>"><?php echo $product['name']; ?></a></div>
            
            <!-- PRICE -->
            <?php if ($product['price']) { ?>
            <div class="price">
              <?php if (!$product['special']) { ?>
              <?php echo $product['price']; ?>
              <?php } else { ?>
              <span class="price-new"><?php echo $product['special']; ?></span> - 
              <span class="price-old"><?php echo $product['price']; ?></span> 
              <span class="sale radius">-<?php echo $product['saving']; ?>%</span>
              <?php } ?>
            </div>
            <?php } ?>
            
            <!-- RATING -->
            <div class="rating"><img src="catalog/view/theme/denzi/image/stars-<?php echo $product['rating']; ?>.png" alt="<?php echo $product['reviews']; ?>" /></div>
            
            <!-- CART -->
            <ul class="cart radius tooltip-title">
            	<li><input type="button" value="<?php echo $button_cart; ?>" onclick="addToCart('<?php echo $product['product_id']; ?>');" /></li>
                <li><a class="wish" onclick="addToWishList('<?php echo $product['product_id']; ?>');" data-toggle="tooltip" title="<?php echo $button_wishlist; ?>"><i class="fa fa-heart-o"></i></a></li>
                <li><a class="compare" onclick="addToCompare('<?php echo $product['product_id']; ?>');" data-toggle="tooltip" title="<?php echo $button_compare; ?>"><i class="fa fa-bar-chart-o"></i></a></li>
                <li><a  href="<?php echo str_replace("/product&","/product/details&",$product['href']); ?>" class="href-fa-eye"  data-toggle="tooltip" title="<?php echo $quick_view_text; ?>"  ><i class="fa fa-eye"></i></a></li>
            </ul>
            
            
          </div>
          <?php } ?>
        </div>
      </div>
    </div>

